package vn.ugame.model.entity;

import java.util.Date;
import java.util.Locale;

@Entity
public class News {

    @Collumn(name="newsId")
    private int id;
    private Module module;
    private Account account;
    @Collumn(name="newsName")
    private String name;
    @Collumn(name="newsText")
    private String text;
    @Collumn(name="newsSummary")
    private String summary;
    @Collumn(name="newsContent")
    private String content;
    @Collumn(name="createdDate")
    private java.util.Date createdDate;
    @Collumn(name="locale")
    private Locale locale;
    @Collumn(name="newsEnable")
    private boolean enable;

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Locale getLocale() {
        return locale;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }

    public Module getModule() {
        return module;
    }

    public void setModule(Module module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public News(int id, String name, String text, String summary, String content, Date createdDate, Locale locale, Boolean enable) {
        this.id = id;
        this.name = name;
        this.text = text;
        this.summary = summary;
        this.content = content;
        this.createdDate = createdDate;
        this.locale = locale;
        this.enable = enable;
    }
}
